package com.mlnx.web.data.controller;


import com.mlnx.data.pojo.form.ZhengKangBpInfoForm;
import com.mlnx.data.pojo.vo.ZhengKangBpResultVo;
import com.mlnx.data.service.WaiBuBpService;

import org.shan.spring.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * Created by amanda.shan on 2017/10/26.
 */
@Api(value = "正康血压数据接口", tags={"正康血压数据接口"})
@RestController
@RequestMapping("/mlnx_data/zhengkang")
public class ZhengkangController extends BaseController {

    @Autowired
    private WaiBuBpService gprsBpService;

    @ApiOperation(value = "上传血压数据", notes = "")
    @RequestMapping(value = "/sendbp", method = {RequestMethod.GET, RequestMethod.POST})
    public ZhengKangBpResultVo sendZhengKangBpData(ZhengKangBpInfoForm deviceBpInfo) {

        return gprsBpService.saveZhengKangBp3GDeviceInfo(deviceBpInfo);
    }
}
